﻿using System;

namespace Songhay.Silverlight.BiggestBox.IndexPart.ViewModels
{
    using Songhay.Mvvm.ViewModels;

    public class ContextMenuSampleViewModel : ViewModelBase
    {
        public ContextMenuSampleViewModel()
        {
            base.CommandDictionary.Add("cmd1", new Action(() =>
            {
                this.FooterText = "You have run command one.";
            }));
            base.CommandDictionary.Add("cmd2", new Action(() =>
            {
                this.FooterText = "You have run the second command.";
            }));
            base.CommandDictionary.Add("cmd3", new Action(() =>
            {
                this.FooterText = "The third command run.";
            }));
            base.CommandDictionary.Add("cmd4", new Action(() =>
            {
                this.FooterText = "Command four run.";
            }));
            base.CommandDictionary.Add("cmd5", new Action(() =>
            {
                this.FooterText = "This is command five.";
            }));
            base.CommandDictionary.Add("cmd6", new Action(() =>
            {
                this.FooterText = "You have run this sixth command.";
            }));
            base.CommandDictionary.Add("cmd7", new Action(() =>
            {
                this.FooterText = "Seven, a command.";
            }));
        }

        public string FooterText
        {
            get { return this._footerText; }
            set
            {
                this._footerText = value;
                base.RaisePropertyChanged("FooterText");
            }
        }

        string _footerText;
    }
}
